<%@ page language="java" import="java.util.*,com.king.cms.common.PowerParameter,com.king.cms.common.CMSUtil,com.king.cms.orm.*" pageEncoding="UTF-8"%>
<%@ include file="../../include/css.jsp"%>
<%-- /*包含css样式表*/ --%> 
<%   
	String pageFunc = "勾选角色";		//功能描述 
	String userId = request.getParameter("usreid");
%>
<%
%>
<html>
<head>
<title><%=pageFunc%></title>
<meta  http-equiv="Expires"     CONTENT="0">           
<meta  http-equiv="Cache-Control"     CONTENT="no-cache">           
<meta  http-equiv="Pragma"     CONTENT="no-cache">
<script language="javascript">
	function doEnable()
	{
		form1.bmMc.disabled=false;
		form1.bmBzrs.disabled=false;
	}
	function ki_save(){
	 	form1.submit();
	}
	function ki_cls(){
		
	}
	function ki_list(){
		window.open('<%=basePath%>user.do?doClass=acclist','_self');
	}
	////////除去空格/////////
	function clskg(va){
	  var th=/\s/g;
	 va=va.replace(th,'');
	 return va;
	}
</script>
</head>
<%
int pow=(PowerParameter.save  | PowerParameter.list);
if(null != userId && "12".equals(userId))
  pow = PowerParameter.list;
  
Map map=new HashMap();
if(request.getAttribute("map") != null)
  map = (Map)request.getAttribute("map");
 List list=new ArrayList();
 if(request.getAttribute("list") != null) 
    list = (List)request.getAttribute("list");
    
CMSUtil cmsutil=new CMSUtil();
 %>
<body  background="<%=imgpath%>top3.gif" leftmargin="0" topmargin="0">
<p>&nbsp;</p>
<form name="form1" method="post"
			action="<%=basePath%>user.do?doClass=saveuserrole">
			<input name="usreid" type="hidden" value="<%=request.getParameter("usreid")%>">
			<table border="0" cellpadding="0" cellspacing="0" width="98%"
				height="2">
				<tr>
					<td width="9" height="1"></td>
					<td height="1" background="<%=path%>/img/images_06.gif">
						<p align="center">
							<b>
							</b>
					</td>
					<td width="9" height="1"></td>
				</tr>
			</table>     
<table  border="0" class="bg_table" align="center" cellPadding="0" cellSpacing="0" style="width:50%">
         <tr class="top_td">
		    <td><%=pageFunc%></td>
		  </tr>
    <% Iterator iterator=list.iterator(); 
               
                  while(iterator.hasNext()){
                  CmsRole cmsRole=(CmsRole)iterator.next();
                  if(cmsRole != null){
                %>
		 <tr  class="td3" align="left" >
		    <td><input name="roleid" type="radio" value="<%=cmsRole.getId() %>" <%if(userId !=null && "12".equals(userId))  out.println(" disabled=true "); %> <%if(map.containsKey(cmsRole.getId()))out.print("checked"); %> /><%=cmsRole.getRoleName() %></td>
		  </tr>
		  
  <% }}%>
   <tr class="top_td">
		    <td></td>
		  </tr>
	</table></form>
</body>
<script language="javascript">
</script>
</html>
<%@ include file="../../pow.jsp"%>